package com.lbd.smsplatform.service;

import com.lbd.base.service.BaseService;
import com.lbd.smsplatform.bean.SmsWhiteList;

import java.util.List;

/**
 * Created by wang on 2016/9/26.
 */
public interface SmsWhiteListService extends BaseService<SmsWhiteList> {
    /**
     * 1. 按照收件人查找短信
     *
     * @param recipient 收件人
     * @return
     */
    List<SmsWhiteList> findByRecipient(String recipient);

    /**
     * 2. 按照Id查找短信规则
     *
     * @param id 短信规则id
     * @return
     */
    SmsWhiteList findById(String id);
}
